package gui;

import javax.swing.JFrame;
import javax.swing.JLabel;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/

@SuppressWarnings("serial")
public class FormError extends JFrame{

	{
		//Set Look & Feel
		try {
			javax.swing.UIManager.setLookAndFeel("com.jgoodies.looks.plastic.PlasticLookAndFeel");
		} catch(Exception e) {
			e.printStackTrace();
		}
	}

	private JLabel jLabel;

	/**
	 * Create the application
	 */
	public FormError(String error) {
		
		initialize();

		getjLabel().setText(error);
	}
	/**
	 * Launch the application
	 * @param args
	 */
	/*public  void visible() {
		try {
			this.setVisible(true);
			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}*/
	
	@SuppressWarnings("unused")
	private  void invisible() {
		try {
			
		this.setVisible(false);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Initialize the contents of the frame
	 */
	private void initialize() {
		//frame = new JFrame();
		getContentPane().setLayout(null);
		this.setBounds(0, 0, 512, 206);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setPreferredSize(new java.awt.Dimension(512, 206));
		this.setTitle("Project Mirc P2P - Errore");
		this.setMinimumSize(new java.awt.Dimension(512, 206));

		{
			jLabel = new JLabel();
			getContentPane().add(jLabel);
			jLabel.setBounds(28, 21, 434, 126);
		}
		pack();
		this.setSize(512, 206);
	}
	
	public JLabel getjLabel() {
		return jLabel;
	}
	
}
